package com.example.imterface.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: banban
 * @Desctription: TODO
 * @Date: Created in 2023/12/8 16:30
 * @Version: 1.0
 */
@Data
@TableName(value = "shop_user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(value = "username")
    private String username;
    @TableField(value = "password")
    private String password;
    @TableField(value = "telephone")
    private String telephone;
    @TableField(exist = false)
    private List<Product> productList;
}
